package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PolicyInfoNewsQueryCondition
 * @Description TODO
 * @Author HeTao
 * @Date 2021/7/23 17:02
 * @Version 1.0
 **/
@Data
@ApiModel(value = "PolicyInfoNewsQueryCondition",description = "新闻查询条件")
public class PolicyInfoNewsQueryCondition implements Serializable {

    private static final long serialVersionUID = -1991119014144590609L;

    @ApiModelProperty(value = "标题",required = false)
    private String title;

    @ApiModelProperty(value = "发布人",required = false)
    private Long publishPerson;

    @ApiModelProperty(value = "发布开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String publishStartTime;

    @ApiModelProperty(value = "发布结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String publishEndTime;

    @ApiModelProperty(value = "是否热门",required = false)
    private String isHot;

    @ApiModelProperty(value = "是否上线",required = false)
    private String isOnline;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;
}
